package com.xing.service.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by Bradish7Y on 2017/9/1.
 */
@Component
@Slf4j
public class ForeachPrintTask {

    @Scheduled(cron = "0/5 * * * * *")
    public void print() {
        log.info("print current time:{}ms", System.currentTimeMillis());
    }
}
